<div class="hr-line-dashed"></div>
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
    <label class="col-sm-2 control-label">权限规则</label>
    <div class="col-sm-10">
        <input class="form-control" type="text" name="name" value="{{$name}}">
        <input class="form-control" type="hidden" name="cid" value="{{$cid}}">
        <span class="help-block m-b-none">权限规则唯一名称，如“admin.role.create”、“admin.role.destroy”、“admin.role.edit”、“admin.role.index”等对应增删改查操作</span>
    </div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group{{ $errors->has('display_name') ? ' has-error' : '' }}">
    <label class="col-sm-2 control-label">权限名称</label>
    <div class="col-sm-10">
        <input class="form-control" type="text" name="display_name" value="{{ $display_name }}">
        <span class="help-block m-b-none">人类可读的权限名称，例如“添加用户”、“删除用户”、“编辑用户”等</span>
    </div>
</div>

{{--一级栏目图标--}}
@if($cid==0)
    <link rel="stylesheet" href="/plugins/bootstrap-iconpicker/icon-fonts/font-awesome-4.2.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/plugins/bootstrap-iconpicker/bootstrap-iconpicker/css/bootstrap-iconpicker.min.css"/>
    <div class="hr-line-dashed"></div>
    <div class="form-group">
        <label class="col-sm-2 control-label">图标</label>
        <div class="col-sm-10">
            <!-- Button tag -->
            <button class="btn btn-default" name="icon" data-iconset="fontawesome" data-icon="{{ $icon ? $icon:'fa-sliders' }}" role="iconpicker"></button>
            <span class="help-block m-b-none">菜单中展示的图标</span>
        </div>
    </div>
@section('js')
    <script type="text/javascript" src="/plugins/bootstrap-iconpicker/bootstrap-iconpicker/js/iconset/iconset-fontawesome-4.3.0.min.js"></script>
    <script type="text/javascript" src="/plugins/bootstrap-iconpicker/bootstrap-iconpicker/js/bootstrap-iconpicker.js"></script>
@stop
@endif

<div class="hr-line-dashed"></div>
<div class="form-group">
    <label class="col-sm-2 control-label">权限描述</label>
    <div class="col-sm-10">
        <textarea name="description" class="form-control">{{ $description }}</textarea>
        <span class="help-block m-b-none">该权限的详细描述</span>
    </div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
    <div class="col-sm-4 col-sm-offset-2">
        <button class="btn btn-white" type="reset">取消</button>
        <button class="btn btn-primary" type="submit">提交</button>
    </div>
</div>